package com.czl.elm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Map;

/**
 * <p>
 * 
 * </p>
 *
 * @author zuoleiChen
 * @since 2021-05-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Food对象", description="")
@Document(collection = "food")
public class Food implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @ApiModelProperty(value = "食物id")
    private String foodid;

    @ApiModelProperty(value = "食物图片url")
    private String foodUrl;

    @ApiModelProperty(value = "食物名称")
    private String foodName;

    @ApiModelProperty(value = "食物简介")
    private String foodInfo;

    @ApiModelProperty(value = "食物描述")
    private String foodMessage;

    @ApiModelProperty(value = "食物原料")
    private String foodMaterial;

    @ApiModelProperty(value = "食物价格说明")
    private String foodDescription;

    @ApiModelProperty(value = "菜品标签")
    private String foodLabel;

    @ApiModelProperty(value = "是否是招牌菜")
    private Integer foodTop;

    @ApiModelProperty(value = "菜是否是打折，100表示不打折")
    private Integer foodDiscount;

    @ApiModelProperty(value = "包装费")
    private Integer foodPack;

    @ApiModelProperty(value = "限购数量 -1表示不限购 0")
    private Integer foodLimit;

    @ApiModelProperty(value = "商店id（外键）")
    private Integer shopid;

    @ApiModelProperty(value = "菜品状态")
    private Integer enable;

    @ApiModelProperty(value = "菜品剩余-1 表示无限制 0表示售完")
    private Integer foodRest;

    @ApiModelProperty(value = "菜品价格")
    private Integer foodMoney;

    @ApiModelProperty(value = "菜品月售")
    private Integer foodNumber;

    @ApiModelProperty(value = "菜品好评")
    private Integer foodGood;

    @ApiModelProperty(value = "菜品是否有规格选择")
    private Integer costGroup;
}
